package com.mtsmda.bookjava7.chapter2.castingEx;

public class Dog extends Animal{
	
	public void dog(){
		System.out.println("Dog.dog()");
	}
	
	@Override
	public void eat() {
		System.out.println("meat");
	}
	
	@Override
	public Dog getAnimal() {
		return new Dog();
	}
	
}